/* 
 * -------------------------------------------------------------------
 * This is the music interface that takes charge of playing, pausing
 * and stopping a music stream, as well as setting it to loop playback.
 * 2011, by Wu Mu Xian
 * ------------------------------------------------------------------- 
*/

package mygame.basicgameframework;

public interface Music {
	// play the music
	public void play();
	
	// stop the music
	public void stop();
	
	// pause the music
	public void pause();
	
	// enable/disable loop mode
	public void setLooping(boolean looping);
	
	// set volume
	public void setVolume(float volume);
	
	// check if it is playing
	public boolean isPlaying();
	
	// check if it is stopped
	public boolean isStoped();
	
	// check if it is in loop mode
	public boolean isLooping();
	
	// dispose the music
	public void dispose();
}
